/*
 ============================================================================
 Name		: PhoneProtector.cpp
 Author	  : Lenka Litvova
 Version	 : 1.0
 Copyright   : Copyright belongs to Lenka Litvova
 Description : CPhoneProtector implementation
 ============================================================================
 */

#include "PhoneProtector.h"
#include "FRamI_UIAppUi.h"

CPhoneProtector::CPhoneProtector(CFRamI_UIAppUi *aAppUi):iAppUi(aAppUi)
	{
	// No implementation required
	}

CPhoneProtector::~CPhoneProtector()
	{
	}

CPhoneProtector* CPhoneProtector::NewLC(CFRamI_UIAppUi *aAppUi)
	{
	CPhoneProtector* self = new (ELeave) CPhoneProtector(aAppUi);
	CleanupStack::PushL(self);
	self->ConstructL();
	return self;
	}

CPhoneProtector* CPhoneProtector::NewL(CFRamI_UIAppUi *aAppUi)
	{
	CPhoneProtector* self = CPhoneProtector::NewLC(aAppUi);
	CleanupStack::Pop(); // self;
	return self;
	}

void CPhoneProtector::ConstructL()
	{

	}

void CPhoneProtector::ApplicationStarted(TUid aAppUid)
	{
		iAppUi->CaptureImage(aAppUid);
	}

void CPhoneProtector::ApplicationStarted()
	{
		iAppUi->CaptureImage();
	}
